package cn.train.service;

import java.util.List;

import org.apache.ibatis.session.SqlSession;
import org.junit.Test;

import cn.train.dao.HotWayDao;
import cn.train.model.Liulan;
import cn.train.util.SqlSessionFactoryUtil;

public class HotWayServices {
	SqlSession session=SqlSessionFactoryUtil.getSqlSession();
	HotWayDao hotway=session.getMapper(HotWayDao.class);
	
	public List<Liulan> findAll(){
		return hotway.findAll();
	}
	
	@Test
	public void test(){
		List<Liulan> list=hotway.findAll();
		for (Liulan liulan : list) {
			System.out.println(liulan.getLiechename()+"----------"+liulan.getNum());
		}
	}
}
